package org.extframework.ld.bean;

import java.util.HashSet;
import java.util.Set;


/**
 * @author : Dong.Li
 * @created : 2013-1-17
 * @version : 1.0
 * @description :
 */
public class Power extends Entity {
	public Power(String type, String powerId, String name, Power power) {
		super();
		this.type = type;
		this.powerId = powerId;
		this.name = name;
		this.power = power;
	}
	
	public Power() {
	}
	

	private static final long serialVersionUID = 1L;
	private String type;
	private String powerId;
	private String name;
	private Power power;
	private Boolean beActive = false;
	
	private Set<Role> roles = new HashSet<Role>();
	

	public Set<Role> getRoles() {
		return roles;
	}

	public void setRoles(Set<Role> roles) {
		this.roles = roles;
	}

	public Boolean getBeActive() {
		return beActive;
	}

	public void setBeActive(Boolean beActive) {
		this.beActive = beActive;
	}

	public String getPowerId() {
		return this.powerId;
	}

	public void setPowerId(String powerId) {
		this.powerId = powerId;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Power getPower() {
		return this.power;
	}

	public void setPower(Power power) {
		this.power = power;
	}
}
